package com.yami.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.LuckProduct;
import com.yami.shop.bean.model.LuckUserProduct;

import java.util.List;
import java.util.Map;

public interface LuckUserProductService extends IService<LuckUserProduct> {
    List<Map<String,Object>> getAllLuckPerson();

    LuckUserProduct selectByUid(String uid);

    LuckUserProduct getLuckUserProd(LuckUserProduct luckUserProduct);

    //查询当天该商品的中奖次数
    int getWinningTimes(LuckProduct luckProduct);

    //获取该用户总的抽奖次数
    int getAllLuckTime(String userId,Long shopId);

    //获取当前用户总的中奖次数
    int getAllWinningTime(String userId,Long shopId);

    //获取当前用户今天的抽奖次数
    int getcurrentDayLuckTime(String userId,Long shopId);

    //获取用户今天的中奖次数
    int getdayWinningTime(String userId,Long shopId);
}
